package com.jeespring.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Title: CustomizeRule
 * @Description:
 * @Author 张朝阳
 * @Date 2020/11/25 18:51
 */
@Configuration
public class CustomizeRule {

    @Bean
    public IRule getCustomizeRule(){
        return new RandomRule();
    }
}
